<%-- 
    Document   : halamanTambahDosenPeneliti
    Created on : Oct 8, 2012, 2:20:31 PM
    Author     : user
--%>

<%@include file="../header.jsp"%>


<!-- end page-heading //sampai sini-->

<div class="clear"></div>

<!-- start content-outer -->
<div id="content-outer">
    <!-- start content -->
    <div id="content">


        <div id="page-heading"><h1>Tambah Peneliti Eksternal</h1></div>


        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tr>
                <th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
                <th class="topleft"></th>
                <td id="tbl-border-top">&nbsp;</td>
                <th class="topright"></th>
                <th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
            </tr>
            <tr>
                <td id="tbl-border-left"></td>
                <td>
                    <%
                            String pesan = (String) request.getAttribute("pesan");
                            String isiPesan;
                            if (pesan != null) {
                                if (pesan.equals("sukses")) {
                                    isiPesan = (String) request.getAttribute("isiPesan");

                        %>            
                        <!--  start message-green -->
                        <div id="message-green">
                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="green-left"><strong><% out.print(isiPesan);%></strong></td>
                                    <td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"   alt="" /></a></td>
                                </tr>
                            </table>
                        </div>
                        <!--  end message-green -->
                        <%
                        } else if (pesan.equals("gagal")) {
                            isiPesan = (String) request.getAttribute("isiPesan");

                        %>
                        <!--  start message-red -->
                        <div id="message-red">
                            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="red-left"><strong><% out.print(isiPesan);%></strong></td>
                                    <td class="red-right"><a class="close-red"><img src="images/table/icon_close_red.gif"   alt="" /></a></td>
                                </tr>
                            </table>
                        </div>
                        <!--  end message-green -->
                        <%
                                }
                            }
                        %>
                    <!--  start content-table-inner -->
                    <div id="content-table-inner">

                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr valign="top">
                                <td>
                                    <script>
                                        function validateForm()
                                        {             
                                            
                                            var namaPenelitiEksternal = true;
                                            
                                            if(document.frm.namaPenelitiEksternal.value=="")
                                            {                                                
                                                document.getElementById("namaPenelitiEksternal_error").innerHTML="<div class='error-left'></div><div class='error-inner'>Nama Peneliti Eksternal Belum Diisi.</div>";
                                                namaPenelitiEksternal = false;
                                            } else {
                                                document.getElementById("namaPenelitiEksternal_error").innerHTML="";       
                                            }
                                            
                                            if(namaPenelitiEksternal){
                                                return true;
                                            }else{
                                                return false;
                                            }
        
                                        }
                                    </script>

                                    <!-- start id-form -->
                                    <form name="frm" method="post" action="tambahAnggotaPenelitiEksternal?status=submit" onsubmit="return validateForm()">
                                        <table border="0" cellpadding="5" cellspacing="15"  id="id-form">
                                            <input type="hidden" name="noPenelitian" value="${penelitian.noPenelitian}"/>
                                            <tr>
                                                <th valign="top">Nama Peneliti Eksternal<font color="red">*</font></th>
                                                <td width="15">:</td>
                                                <td>
                                                    <input type="text" name="namaPenelitiEksternal" id="namaPenelitiEksternal" class="inp-form" />
                                                </td>
                                                <td id="namaPenelitiEksternal_error"></td>
                                            </tr>                                            
                                            <tr>
                                                <th>&nbsp;</th>
                                                <td></td>
                                                <td valign="top">
                                                    <input type="submit" value="" class="form-simpan" />
                                                    <a href="detailLaporanPenelitian?noPenelitian=${penelitian.noPenelitian}"><input type="button" value="" class="form-batal"  /></a>
                                                </td>
                                                <td></td>
                                            </tr>
                                        </table>
                                    </form>
                                    <!-- end id-form  -->

                                </td>

                                <td>

                                    <!--  start related-activities -->
                                    <div id="related-activities">

                                        <!--  start related-act-top -->
                                        <div id="related-act-top">
                                            <img src="images/forms/header_related_act.gif" width="271" height="43" alt="" />
                                        </div>
                                        <!-- end related-act-top -->

                                        <!--  start related-act-bottom -->
                                        <div id="related-act-bottom">

                                            <!--  start related-act-inner -->
                                            <div id="related-act-inner">

                                                <!--<div class="left"><a href=""><img src="images/forms/icon_plus.gif" width="21" height="21" alt="" /></a></div>-->
                                                <div class="right">
                                                    <h5>Pengisian Data </h5>
                                                    Silakan isi data dengan teliti dan benar. Kolom yang bertanda * wajib diisi.
                                                    <!--<ul class="greyarrow">
                                                        <li><a href="">Click here to visit</a></li> 
                                                        <li><a href="">Click here to visit</a> </li>
                                                    </ul>-->
                                                </div>

                                                <div class="clear"></div>
                                                <div class="lines-dotted-short"></div>

                                                <!--<div class="left"><a href=""><img src="images/forms/icon_minus.gif" width="21" height="21" alt="" /></a></div>-->

                                                <!--<div class="left"><a href=""><img src="images/forms/icon_edit.gif" width="21" height="21" alt="" /></a></div>-->
                                                
                                            </div>
                                            <!-- end related-act-inner -->
                                            <div class="clear"></div>

                                        </div>
                                        <!-- end related-act-bottom -->

                                    </div>
                                    <!-- end related-activities -->

                                </td>
                            </tr>
                            <tr>
                                <td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
                                <td></td>
                            </tr>
                        </table>

                        <div class="clear"></div>


                    </div>
                    <!--  end content-table-inner  -->
                </td>
                <td id="tbl-border-right"></td>
            </tr>
            <tr>
                <th class="sized bottomleft"></th>
                <td id="tbl-border-bottom">&nbsp;</td>
                <th class="sized bottomright"></th>
            </tr>
        </table>

        <div class="clear">&nbsp;</div>

    </div>
    <!--  end content -->
    <div class="clear">&nbsp;</div>
</div>
<!--  end content-outer -->



<div class="clear">&nbsp;</div>

<%@include file="../footer.jsp"%>